﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GeoFly
{
    public abstract class PET
    {
        public PET(int yr,int dn,double lat)
        {
        }


    public 	double NetShortWaveRadiation(double albedo,double slrg)
    {
        dNetShort = slrg*(1-albedo);
	    return dNetShort;
    }
	public double NetShortWaveRad(double albedo,double slrp,double a,double bx,double dAbsorb)
    {
        //double slrg;
        //slrg = pslr.RealSolarRad(slrp,a,bx,dAbsorb);
        //dNetShort = slrg*(1-albedo);
        //return dNetShort;
        throw new Exception("");
    }
    public double NetShortWaveRad(double albedo,double slrp)
    {
        return this.NetShortWaveRad(albedo,slrp,0.16,0.65,0.85);
        
    }
    
	public abstract double NetLongWaveRadAvp(double slrp,double avp);
	public abstract double NetLongWaveRadRHmd(double slrp,double rhmd);


	public SolarRadiation pslr;
	public double	dEnergy;		
	public double	dAero;				
	

	public double	dNetShort;			
	public double  dNetLong;			

	public double dTav,dTmx,dTmn;
	public double dElev;
	public double dTmxk;		
	public double dTmnk;		
	public double dTavk;		
    }
}
